<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>title</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css"/>
    
    <style>
    	html,body{
	    padding: 0;
	    margin: 0;
	}
body{
    font-family: arial;
    
    min-width: 300px;
    max-width: 640px;
    margin: 0 auto;
    background-color: #f2f2f2; font-size: 14px;
    
    
}
    </style>
</head>
<body>
	<div id='cart' style='margin-bottom: 32px;  background-color: #fff;'>
		<div class="c-content" style='text-align: center;padding-top: 45%'>
			<div class="c-img">
				<img src="../image/paysafe.png" width="120px" height="120px"></div>
			<div  style="margin: 10px 0px"><p id='ac' class="gray">正在发起微信支付，请稍后~</p></div>
		
	</div>
	</div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript">
	apiready = function(){
	
	setTimeout(function(){
		ac()
	},4000)
		function ac(){
			var ac = $api.byId('ac');
			$api.html(ac, '正在获取支付结果，请稍后~');
		}

		var backHome = $api.byId('backHome');
		$api.addEvt(backHome, 'click', function(){
			
		api.execScript({
        name: 'root',
        frameName: 'cart',
        script: 'cartClean()'
        
    });
    home();
		});
	};
</script>
</html>